<template>
    <div class="cell">
        <div class="left">
            <div class="code">{{opcTag ? opcTag.code : ""}}</div>
            <div class="name">{{opcTag ? opcTag.name : ""}}</div>
        </div>
        <div class="right"><el-button @click="select" icon="el-icon-arrow-right"></el-button></div>
    </div>
</template>

<script>
export default {
    props: ["opcTag"],
    methods: {
        select() {
            this.$emit("select", 1 ,this.opcTag);
        }
    }
};
</script>

<style lang="less" scoped>

.cell {
    display: flex;
    flex-flow: row nowrap;

    box-sizing: border-box;
    border: 2px solid #E6A23C;
    padding: 6px;
    margin: 4px;

    .left {
        flex: auto;

        display: flex;
        flex-flow: column nowrap;
        font-size: 12px;
        line-height: 16px;

        .code {
            font-size: 14px;
            margin-bottom: 4px;
        }

        .name {
            font-size: 14px;
            margin-bottom: 4px;
        }
    }

    .right {
        flex: none;
    }
}


</style>